#!/bin/sh
pids=`find ./pid -name "*.pid"`
for file in $pids
do
    pid=$(cat $file)
    kill $pid
    rm $file
done

